# -*- coding: cp932 -*-
'''
Created on 2012/04/27

@author: rusyou
'''
from prototype.framework.Product import Product
from copy import copy

class UnderlinePen(Product):
    '''
    classdocs
    '''

    def __init__(self, ulchar):
        '''
        Constructor
        '''
        self.ulchar = ulchar

    def createClone(self):
        return copy(self)

    def use(self, s):
        length = len(s)
        print "\"" + s + "\""
        msg = " "
        i = 0
        while i < length:
            msg += self.ulchar
            i += 1
        print msg